package com.guyaogg.gulimall.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * # @EnableRedisHttpSession 整合 session 保存到 redis，，导入 RedisHttpSessionConfiguration 配置
 *   原理 1. 放入 RedisIndexedSessionRepository 操作 session
 *        2. SessionRepositoryFilter session 存储过滤器 ，，实现了 Filter
 *        装饰者模式
 *
 *        
 * @author 顾遥
 */
@EnableRedisHttpSession
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallAuthServerApplication.class, args);
    }

}
